﻿using FileHelpers;
using MongoDB.Bson.Serialization.Attributes;
using System;

namespace Hicap.QRCodeWarehouse.Processor.Model
{
    [BsonIgnoreExtraElements]
    [IgnoreEmptyLines]
    [DelimitedRecord(",")]
    public class QrCodeRecord
    {
        public string Code { get; set; }

        public string LinkedCode { get; set; }

        [FieldHidden]
        public int TaskId { get; set; }

        [FieldHidden]
        public bool IsUsed { get; set; }

        [FieldHidden]
        public bool IsDownloaded { get; set; }

        [FieldHidden]
        public DateTime? CreateTime { get; set; }

        [FieldHidden]
        public DateTime? UsedTime { get; set; }

        [FieldHidden]
        public DateTime? DownloadedTime { get; set; }
    }
}